Zepto.ui={
	toptip:function(txt){
		document.getElementById("ll_toptip").innerHTML=txt;
		$("#ll_toptip").addClass("fadeInDown");
		window.setTimeout(function(){
			$("#ll_toptip").removeClass("fadeInDown").addClass("fadeOutUp");
		},2000);
	},
	mask:function(tip,mask){
		if(mask){
			document.getElementById("ll_maskbg").style.display="block";	
		}
		
		if(tip){
			document.getElementById("ll_lading_tip").innerHTML=tip;
		}
		document.getElementById("ll_loadinginner").style.display="block";
	},unmask:function(){
		document.getElementById("ll_lading_tip").innerHTML="加载中...";
		document.getElementById("ll_maskbg").style.display="none";
		document.getElementById("ll_loadinginner").style.display="none";
	},
	toast:function(icon,txt,timeout){
		if(!timeout){
			timeout=2000;
		}
		document.getElementById("ll_toast").style.display="block";
		document.getElementById("ll_toast_tip").innerHTML=txt;
		window.setTimeout(function(){
			document.getElementById("ll_toast").style.display="none";
		},timeout);
	},unmask:function(){
		document.getElementById("ll_lading_tip").innerHTML="加载中...";
		document.getElementById("ll_maskbg").style.display="none";
		document.getElementById("ll_loadinginner").style.display="none";
	},alert:function(title,content,callback){
		document.getElementById("ll_maskbg").style.display="block";	
		document.getElementById("ll_alert").style.display="block";
		if(callback){
			$("#ll_alert_b_btn").click(function(){
				callback();
				$("#ll_alert_b_btn").unbind("click");
				document.getElementById("ll_maskbg").style.display="none";	
				document.getElementById("ll_alert").style.display="none";
			});
		}else{
			$("#ll_alert_b_btn").click(function(){
				$("#ll_alert_b_btn").unbind("click");
				document.getElementById("ll_maskbg").style.display="none";	
				document.getElementById("ll_alert").style.display="none";
			});
		}
		if(content && content!=""){
			document.getElementById("ll_alert_c").innerHTML=content;
		}
		if(title && title!=""){
			document.getElementById("ll_alert_t").innerHTML=title;
		}
	},confirm:function(title,content,callback_ok,callback_cacell){
		document.getElementById("ll_maskbg").style.display="block";	
		document.getElementById("ll_confirm").style.display="block";
		if(callback_ok){
			$("#ll_confirm_ok").click(function(){
				callback_ok();
				$("#ll_confirm_ok").unbind("click");
				document.getElementById("ll_maskbg").style.display="none";	
				document.getElementById("ll_confirm").style.display="none";
			});
		}
		if(callback_cacell){
			$("#ll_confirm_qx").click(function(){
				callback_cacell();
				callback_ok = null;
				$("#ll_confirm_qx").unbind("click");
				document.getElementById("ll_maskbg").style.display="none";	
				document.getElementById("ll_confirm").style.display="none";
			});
		}else{
			$("#ll_confirm_qx").click(function(){
				callback_ok = null;
				$("#ll_confirm_qx").unbind("click");
				document.getElementById("ll_maskbg").style.display="none";	
				document.getElementById("ll_confirm").style.display="none";
			});
		}
		if(content && content!=""){
			document.getElementById("ll_confirm_c").innerHTML=content;
		}
		if(title && title!=""){
			document.getElementById("ll_confirm_t").innerHTML=title;
		}
	}
}
document.body.addEventListener('touchstart', function () {
});
